package ankang.oop1;
//一个抽象的汽车概念。
public class Car {
    String brand;
    String color;
    double price;
    int capacity;

    void start(){
        System.out.println("发动汽车");
    }

    void stop(){
        System.out.println("停止汽车");
    }

    void run(){
        System.out.println("汽车正在行驶");
    }

    String getMsg(){
        return brand + ":" + color + ":" + price + ":" + capacity;
    }

}
